const routes = [
    {
        name: 'ShopIndex',
        path: '/shop/index',
        meta: {
            title: '首页'
        },
        components: {
            default: resolve => require(['../views/shop/index.vue'], resolve)
        }
    },
    //主管积分商品列表
    {
        name:'GeneralIntegralList',
        path:'/GeneralRepository/general-integral-list',
        meta:{
            title:'积分商品列表'
        },
        components:{
            default: resolve => require(['../views/GeneralRepository/general-integral-list.vue'],resolve)
        }
    },
    //主管积分商品详情
    {
        name:'GeneralIntegralDetail',
        path:'/GeneralRepository/general-integral-detail/:id',
        meta:{
            title:'积分商品详情'
        },
        components:{
            default: resolve => require(['../views/GeneralRepository/general-integral-detail.vue'],resolve)
        }
    },
    //主管积分订单列表
    {
        name:'GeneralAwaitOrderList',
        path:'/GeneralRepository/general-await-order-list',
        meta:{
            title:'积分订单列表'
        },
        components:{
            default: resolve => require(['../views/GeneralRepository/general-await-order-list.vue'],resolve)
        }
    },
    //主管积分订单确认
    {
        name:'GeneralAwaitIntegralOrder',
        path:'/GeneralRepository/general-await-integral-order',
        meta:{
            title:'积分商品订单'
        },
        components:{
            default: resolve => require(['../views/GeneralRepository/general-await-integral-order.vue'],resolve)
        }
    },
    //门店积分订单列表
    {
        name: 'ShopIntegralOrderList',
        path: '/shop/shop-integral-order-list',
        meta: {
            title: '积分订单列表'
        },
        components: {
            default: resolve => require(['../views/shop/shop-integral-order-list.vue'], resolve)
        }
    },
    {
        name: 'ShopAwaitIntegralOrder',
        path: '/shop/shop-await-integral-order',
        meta: {
            title: '积分订单详情'
        },
        components: {
            default: resolve => require(['../views/shop/shop-await-integral-order.vue'], resolve)
        }
    },
    //门店积分商城
    {
        name: 'ShopIntegralList',
        path: '/shop/shop-integral-list',
        meta: {
            title: '积分商品列表'
        },
        components: {
            default: resolve => require(['../views/shop/shop-integral-list.vue'], resolve)
        }
    },
    //门店积分商品详情
    {
        name: 'ShopIntegralDetail',
        path: '/shop/shop-integral-detail',
        meta: {
            title: '积分商品详情'
        },
        components: {
            default: resolve => require(['../views/shop/shop-integral-detail.vue'], resolve)
        }
    },
    {
        name: 'ShopRegedit',
        path: '/shop/regedit',
        meta: {
            title: '门店注册'
        },
        components: {
            default: resolve => require(['../views/shop/regedit.vue'], resolve)
        }
    },
    {
        name: 'TracingSource',
        path: '/shop/orderSource',
        meta: {
            title: '订单状态'
        },
        components: {
            default: resolve => require(['../views/shop/TracingSource.vue'], resolve)
        }
    },
    {
        name: 'ShopRegeditMap',
        path: '/public/map',
        meta: {
            title: '地图选址'
        },
        components: {
            default: resolve => require(['../views/public/map.vue'], resolve)
        }
    },{
        name: 'YeJiDetail',
        path: '/public/yeji-detail/:id/:index',
        meta: {
            title: '业绩浏览'
        },
        components: {
            default: resolve => require(['../views/public/yeji-detail.vue'], resolve)
        }
    },
    {
        name: 'bindotherwechat',
        path: '/public/bindotherwechat',
        meta: {
            title: '切换微信绑定账号'
        },
        components: {
            default: resolve => require(['../views/public/bindotherwechat.vue'], resolve)
        }
    },
    {
        name: 'Withdraw',
        path: '/shop/withdraw',
        meta: {
            title: '提现'
        },
        components: {
            default: resolve => require(['../views/public/withdraw.vue'], resolve)
        }
    },
    // {
    //     name: "ShopOrderList",
    //     path: "/shop/OrderList",
    //     meta: {
    //         title: "垃圾回收"
    //     },
    //     components: {
    //         default: resolve => require(["../views/shop/OrderList.vue"], resolve)
    //     }
    // },
    {
        name: "ShopOrderDetails",
        path: "/shop/order-details",
        meta: {
            title: '订单详情'
        },
        components: {
            default: resolve => require(["../views/shop/order-details.vue"], resolve)
        }
    },
    //业务员
    {
        name: 'SalesmanIndex',
        path: '/salesman/index',
        meta: {
            title: '首页'
        },
        components: {
            default: resolve => require(['../views/salesman/index.vue'], resolve)
        }
    },
    {
        name: 'SalesmanCollectDetails',
        path: '/salesman/collect-details',
        meta: {
            title: '收取详情'
        },
        components: {
            default: resolve => require(['../views/salesman/collect-details.vue'], resolve)
        }
    },  {
        name: 'SalesmanYeji',
        path: '/salesman/my-yeji',
        meta: {
            title: '业绩列表'
        },
        components: {
            default: resolve => require(['../views/salesman/yeji.vue'], resolve)
        }
    },  {
        name: 'SalesmanYejiDetails',
        path: '/salesman/yeji-detail/:id/:index',
        meta: {
            title: '业绩详情'
        },
        components: {
            default: resolve => require(['../views/salesman/yeji-detail.vue'], resolve)
        }
    },
    {
        name: 'SalesmanCollectChange',
        path: '/salesman/collect-change',
        meta: {
            title: '更改信息'
        },
        components: {
            default: resolve => require(['../views/salesman/collect-change.vue'], resolve)
        }
    },
    {
        name: 'SalesmanWaitingPM',
        path: '/salesman/waiting-point-map',
        meta: {
            title: '待取点'
        },
        components: {
            default: resolve => require(['../views/salesman/waiting-point-map.vue'], resolve)
        }
    },
    {
        name: 'SalesmanEnquiryQuotation',
        path: '/salesman/enquiry-quotation',
        meta: {
            title: '查询报价'
        },
        components: {
            default: resolve => require(['../views/salesman/enquiry-quotation.vue'], resolve)
        }
    },
    {
        name: 'SalesmanPersonalCenter',
        path: '/salesman/personal-center',
        meta: {
            title: '个人中心'
        },
        components: {
            default: resolve => require(['../views/salesman/personal-center.vue'], resolve)
        }
    },
    {
        name: 'SalesmanPersonalCenterProfit',
        path: '/salesman/personal-center/profit',
        meta: {
            title: '我的收益'
        },
        components: {
            default: resolve => require(['../views/salesman/profit.vue'], resolve)
        }
    },
    //业务员积分商品待确认订单列表
    {
        name: 'SaleIntegralOrderList',
        path: '/salesman/sale-integral-order-list',
        meta: {
            title: '我的收益'
        },
        components: {
            default: resolve => require(['../views/salesman/sale-integral-order-list.vue'], resolve)
        }
    },
    //业务员积分商品订单详情
    {
        name: 'SaleAwaitIntegralOrder',
        path: '/salesman/sale-await-integral-order',
        meta: {
            title: '我的收益'
        },
        components: {
            default: resolve => require(['../views/salesman/sale-await-integral-order.vue'], resolve)
        }
    },
    //暂存点主管
     {
        name: 'TemIndex',
        path: '/temporaryDirector/index',
        meta: {
            title: '首页'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/index.vue'], resolve)
        }
    },
    {
        name: 'TemwaitingPointMap',
        path: '/temporaryDirector/waiting-point-map',
        meta: {
            title: '待取点'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/waiting-point-map.vue'], resolve)
        }
    },
    {
        name: 'TemEnquiryQuotation',
        path: '/temporaryDirector/enquiry-quotation',
        meta: {
            title: '查询报价'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/enquiry-quotation.vue'], resolve)
        }
    },
    {
        name: 'MySalesman',
        path: '/temporaryDirector/my-salesman',
        meta: {
            title: '我的业务员'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/my-salesman.vue'], resolve)
        }
    },
<<<<<<< HEAD
    //暂存点积分商品订单页
    {
        name: 'TemporaryIntegralOrderList',
        path: '/temporaryDirector/temporary-integral-order-list',
        meta: {
            title: '积分商品订单'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/temporary-integral-order-list.vue'], resolve)
        }
    },
    //暂存点主管确认订单
    {
        name: 'TemporaryAwaitIntegralOrder',
        path: '/temporaryDirector/temporary-await-integral-order',
        meta: {
            title: '积分商品订单详情'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/temporary-await-integral-order.vue'], resolve)
=======
    {
        name: 'MyYeJi',
        path: '/temporaryDirector/my-yeji',
        meta: {
            title: '业绩浏览'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/yeji.vue'], resolve)
        }
    },   {
        name: 'MyYeJiMingxi',
        path: '/temporaryDirector/yeji-detail/:id/:index',
        meta: {
            title: '业绩明细'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/yeji-detail.vue'], resolve)
>>>>>>> 11c8ae99c396b42cdaeddac169cb268ee1ce01e6
        }
    },
    //库管
    {
        name: 'ReservoirMIndex',
        path: '/reservoirManagement/index',
        meta: {
            title: '首页'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/index.vue'], resolve)
        }
    },
    {
        name: 'ReservoirMStockM',
        path: '/reservoirManagement/stockM',
        meta: {
            title: '库存管理'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/stockM.vue'], resolve)
        }
    },
    {
        name: 'ReservoirMUser',
        path: '/reservoirManagement/personal-center',
        meta: {
            title: '个人中心'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/personal-center.vue'], resolve)
        }
    },
    {
        name: 'ReservoirMEQ',
        path: '/reservoirManagement/enquiry-quotation',
        meta: {
            title: '查询报价'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/enquiry-quotation.vue'], resolve)
        }
    },
    //托盘
    {
        name: 'ReservoirMTray',
        path: '/reservoirManagement/tray',
        meta: {
            title: '垃圾回收'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/tray.vue'], resolve)
        }
    },
    //总库主管
    {
        name: 'GeneralRepositoryIndex',
        path: '/GeneralRepository/index',
        meta: {
            title: '首页'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/index.vue'], resolve)
        }
    },
    {
        name: 'GeneralRepositoryKucun',
        path: '/GeneralRepository/kucun-manage',
        meta: {
            title: '库存报表'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/kucun.vue'], resolve)
        }
    },
    {
        name: 'GeneralRepositoryTypeManage',
        path: '/GeneralRepository/type-manage',
        meta: {
            title: '分类管理'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/type-manage.vue'], resolve)
        }
    },
    {
        name: 'GeneralRepositoryEnquiryQuotation',
        path: '/GeneralRepository/enquiry-quotation',
        meta: {
            title: '查询报价'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/enquiry-quotation.vue'], resolve)
        }
    },
    {
        name: 'GeneralRepositoryUser',
        path: '/GeneralRepository/personal-center',
        meta: {
            title: '个人中心'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/personal-center.vue'], resolve)
        }
    },
    {
        name: 'GROrderShop',
        path: '/GeneralRepository/order-shop',
        meta: {
            title: '暂存点管理'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/order-shop.vue'], resolve)
        }
    }, {
        name: 'GROrderMyShop',
        path: '/GeneralRepository/order-myshop',
        meta: {
            title: '我服务的门店'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/order-myshop.vue'], resolve)
        }
    },
    {
        name: 'GRAddTemp',
        path: '/GeneralRepository/add-temp',
        meta: {
            title: '添加暂存点'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/add-temp.vue'], resolve)
        }
    },
    //会计
    {
        name: 'accountingIndex',
        path: '/accounting/index',
        meta: {
            title: '首页'
        },
        components: {
            default: resolve => require(['../views/accounting/index.vue'], resolve)
        }
    },
    {
        name: 'AccountingQuotedPriceManage',
        path: '/accounting/quoted-price-manage',
        meta: {
            title: '报价管理'
        },
        components: {
            default: resolve => require(['../views/accounting/quoted-price-manage.vue'], resolve)
        }
    },
    {
        name: 'accountingUser',
        path: '/accounting/personal-center',
        meta: {
            title: '个人中心'
        },
        components: {
            default: resolve => require(['../views/accounting/personal-center.vue'], resolve)
        }
    },
    {
        name: 'stock-out-list',
        path: '/accounting/stock-out-list',
        meta: {
            title: '新增出库'
        },
        components: {
            default: resolve => require(['../views/accounting/stock-out-list.vue'], resolve)
        }
    },
    {
        name: 'stock-out-add',
        path: '/accounting/stock-out-add',
        meta: {
            title: '新增出库'
        },
        components: {
            default: resolve => require(['../views/accounting/stock-out-add.vue'], resolve)
        }
    },
    {
        name: 'stock-entry-list',
        path: '/accounting/stock-entry-list',
        meta: {
            title: '新增入库'
        },
        components: {
            default: resolve => require(['../views/accounting/stock-entry-list.vue'], resolve)
        }
    },
    {
        name: 'stock-entry-add',
        path: '/accounting/stock-entry-add',
        meta: {
            title: '新增入库'
        },
        components: {
            default: resolve => require(['../views/accounting/stock-entry-add.vue'], resolve)
        }
    },
    {
        name: 'record',
        path: '/accounting/record',
        meta: {
            title: '垃圾回收'
        },
        components: {
            default: resolve => require(['../views/accounting/record.vue'], resolve)
        }
    },
    {
        name: 'superAdminIndex',
        path: '/SuperAdmin/index',
        meta: {
            title: '垃圾回收'
        },
        components: {
            default: resolve => require(['../views/SuperAdmin/index.vue'], resolve)
        }
    },
    {
        name: 'superAdminOrderShop',
        path: '/superAdmin/order-shop',
        meta: {
            title: '暂存点管理'
        },
        components: {
            default: resolve => require(['../views/superAdmin/order-shop.vue'], resolve)
        }
    },
    {
        name: 'addsalesman',
        path: '/temporaryDirector/addsalesman',
        meta: {
            title: '暂存点添加业务员'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/addsalesman.vue'], resolve)
        }
    },
    {
        name: 'waiting-point-map',
        path: '/GeneralRepository/waiting-point-map',
        meta: {
            title: '待取地图'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/waiting-point-map.vue'], resolve)
        }
    },
    {
      path: "*",
      redirect: "/shop/index"
    }
];

export default routes;
